﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UTSDAL.LINQSQL.Model;

namespace UTSDAL.LINQSQL.Views
{
    public class ReservationView
    {
        private Cohort cohort;

        public Cohort Cohort
        {
            get { return cohort; }
            set { cohort = value; }
        }

        private Module module;

        public Module Module
        {
            get { return module; }
            set { module = value; }
        }

        private Semester semester;

        public Semester Semester
        {
            get { return semester; }
            set { semester = value; }
        }

        private CourseDay courseDay;

        public CourseDay CourseDay
        {
            get { return courseDay; }
            set { courseDay = value; }
        }

        private List<TimetableEvent> reservedEvent;

        public List<TimetableEvent> ReservedEvent
        {
            get { return reservedEvent; }
            set { reservedEvent = value; }
        }


        private String reservationViewId;

        public String ReservationViewId
        {
            get 
            {
                if (cohort != null && module != null)
                {
                    reservationViewId = Cohort.CohortId.ToString() + ";" + module.ModuleId.ToString();
                }
                return reservationViewId; 
            }
            set { reservationViewId = value; }
        }


    }
}
